<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<portlet:defineObjects />

<c:choose>
      <c:when test="${not empty errors}">
         <ul style="color:red">
             <c:forEach items="${errors}" var="error">
                 <li><c:out value="${error}"/></li>
             </c:forEach>
         </ul>
      </c:when>
      <c:otherwise>
          <video src="${videoUrl}"
                  <c:if test="${not empty videoPosterUrl}">poster="${videoPosterUrl}"</c:if>
                  <c:if test="${not empty videoAutoplay}">autoplay="${videoAutoplay}"</c:if>
                  <c:if test="${not empty videoLoop}">loop="${videoLoop}"</c:if>
                  <c:if test="${not empty videoControls}">controls="${videoControls}"</c:if>
                  <c:if test="${not empty videoWidth}">width="${videoWidth}"</c:if>
                  <c:if test="${not empty videoHeight}">height="${videoHeight}"</c:if>>
              Your browser does not support HTML5 video.
          </video>
      </c:otherwise>
</c:choose>
